// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取电流曲线数据 GET /statistic/battery/current/data */
export async function statisticCurrentControllerGetSocData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticCurrentControllerGetSocDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/statistic/battery/current/data`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取设备列表 GET /statistic/battery/current/device */
export async function statisticCurrentControllerGetDeviceList(options?: { [key: string]: any }) {
  return request<API.ApiResultListDeviceInfo>(`${apiPrefix}/statistic/battery/current/device`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 导出电流曲线 GET /statistic/battery/current/export */
export async function statisticCurrentControllerExportReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticCurrentControllerExportReportParams,
  options?: { [key: string]: any },
) {
  return request<any>(`${apiPrefix}/statistic/battery/current/export`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取电流曲线列表 GET /statistic/battery/current/list */
export async function statisticCurrentControllerGetSocList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticCurrentControllerGetSocListParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationStatisticCurveData>(
    `${apiPrefix}/statistic/battery/current/list`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
